package com.zzb.springcloud.controller;

import com.zzb.springcloud.service.ComputeClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by zhangzhenbin on 17-5-9.
 */
@RestController
public class ConsumerController {
    @Autowired
    ComputeClient consumerClient;
    @RequestMapping(value = "/add", method = RequestMethod.GET)
    public Integer add() {
        return consumerClient.add(10,20);
    }
}
